<template>
 <div ref="div">
     子节点
 </div>
</template>

<script>
export default {
    name: 'tableExpanda',
    mounted() {
        console.log('xxx', this.$refs.div);
        setTimeout(() => {
            this.$refs.div.style.height =  (this.$refs.div.offsetHeight + 10) + 'px';
        }, 3000);
    }
};
</script>

<style scoped>

</style>
